package adim;

import javax.microedition.lcdui.*;

public class ProgressDialog
{
	public Command CMD_OK;
	private Form _f;
	
	public ProgressDialog(CommandListener cl)
	{
		CMD_OK = new Command("OK", Command.OK, 0);

		_f = new Form("Progress");
		/*_f.addCommand(CMD_OK);
		_f.setCommandListener(cl);*/
	}

	public void setTitle(String t)
	{
		_f.setTitle(t);
	}

	public void setMessage(String s)
	{
		try {
			_f.delete(0);
		} catch (java.lang.IndexOutOfBoundsException ioobe) {
			//first time around. pass
		}
		_f.append(s);
	}

	public Displayable getDisplay()
	{
		return _f;
	}
}
